package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * carte服务器运行转换情况对象 xxk_carte_runs
 * 
 * @author ruoyi
 * @date 2025-02-23
 */
public class XxkCarteRuns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一ID */
    private Long id;

    /** carte唯一ID */
    private Long carteId;

    /** carte编码 */
    @Excel(name = "carte编码")
    private String carteCode;

    /** carte名称 */
    @Excel(name = "carte名称")
    private String carteName;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String carteIp;

    /** 端口 */
    @Excel(name = "端口")
    private String cartePort;

    /** 用户名 */
    @Excel(name = "用户名")
    private String carteUsername;

    /** 密码 */
    @Excel(name = "密码")
    private String cartePassword;

    /** 权重，值越到权重越高 */
    @Excel(name = "权重，值越到权重越高")
    private Long weight;

    /** 运行策略 */
    @Excel(name = "运行策略")
    private String policy;

    /** trans/job仓库名称 */
    @Excel(name = "trans/job仓库名称")
    private String rep;

    /** trans/job名称 */
    @Excel(name = "trans/job名称")
    private String name;

    /** trans/job */
    @Excel(name = "trans/job")
    private String itemType;

    /** trans/job日志级别 */
    @Excel(name = "trans/job日志级别")
    private String runLevel;

    /** 同步/异步 */
    @Excel(name = "同步/异步")
    private String sync;

    /** 参数 */
    @Excel(name = "参数")
    private String parmMap;

    /** 运行状态（0成功 1失败） */
    @Excel(name = "运行状态", readConverterExp = "0=成功,1=失败")
    private String runStatus;

    /** 目前只有job能接收到，trans接收不到 */
    @Excel(name = "目前只有job能接收到，trans接收不到")
    private String carteObjectId;

    /** 运行结果 */
    @Excel(name = "运行结果")
    private String runResult;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarteId(Long carteId) 
    {
        this.carteId = carteId;
    }

    public Long getCarteId() 
    {
        return carteId;
    }
    public void setCarteCode(String carteCode) 
    {
        this.carteCode = carteCode;
    }

    public String getCarteCode() 
    {
        return carteCode;
    }
    public void setCarteName(String carteName) 
    {
        this.carteName = carteName;
    }

    public String getCarteName() 
    {
        return carteName;
    }
    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }
    public void setCarteIp(String carteIp) 
    {
        this.carteIp = carteIp;
    }

    public String getCarteIp() 
    {
        return carteIp;
    }
    public void setCartePort(String cartePort) 
    {
        this.cartePort = cartePort;
    }

    public String getCartePort() 
    {
        return cartePort;
    }
    public void setCarteUsername(String carteUsername) 
    {
        this.carteUsername = carteUsername;
    }

    public String getCarteUsername() 
    {
        return carteUsername;
    }
    public void setCartePassword(String cartePassword) 
    {
        this.cartePassword = cartePassword;
    }

    public String getCartePassword() 
    {
        return cartePassword;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setPolicy(String policy) 
    {
        this.policy = policy;
    }

    public String getPolicy() 
    {
        return policy;
    }
    public void setRep(String rep) 
    {
        this.rep = rep;
    }

    public String getRep() 
    {
        return rep;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setItemType(String itemType) 
    {
        this.itemType = itemType;
    }

    public String getItemType() 
    {
        return itemType;
    }
    public void setRunLevel(String runLevel) 
    {
        this.runLevel = runLevel;
    }

    public String getRunLevel() 
    {
        return runLevel;
    }
    public void setSync(String sync) 
    {
        this.sync = sync;
    }

    public String getSync() 
    {
        return sync;
    }
    public void setParmMap(String parmMap) 
    {
        this.parmMap = parmMap;
    }

    public String getParmMap() 
    {
        return parmMap;
    }
    public void setRunStatus(String runStatus) 
    {
        this.runStatus = runStatus;
    }

    public String getRunStatus() 
    {
        return runStatus;
    }
    public void setCarteObjectId(String carteObjectId) 
    {
        this.carteObjectId = carteObjectId;
    }

    public String getCarteObjectId() 
    {
        return carteObjectId;
    }
    public void setRunResult(String runResult) 
    {
        this.runResult = runResult;
    }

    public String getRunResult() 
    {
        return runResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carteId", getCarteId())
            .append("carteCode", getCarteCode())
            .append("carteName", getCarteName())
            .append("groupName", getGroupName())
            .append("carteIp", getCarteIp())
            .append("cartePort", getCartePort())
            .append("carteUsername", getCarteUsername())
            .append("cartePassword", getCartePassword())
            .append("weight", getWeight())
            .append("policy", getPolicy())
            .append("rep", getRep())
            .append("name", getName())
            .append("itemType", getItemType())
            .append("runLevel", getRunLevel())
            .append("sync", getSync())
            .append("parmMap", getParmMap())
            .append("runStatus", getRunStatus())
            .append("carteObjectId", getCarteObjectId())
            .append("runResult", getRunResult())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
